package org.nepu.srr.domain.equipmentdata;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.nepu.srr.domain.equipmentdata.converter.CommonInputConverter;
import org.nepu.srr.domain.equipmentdata.vo.CommonInput;

import javax.persistence.Column;
import javax.persistence.Convert;

@Data
@ApiModel(value = "探测及报警系统证书参数")
public class DetectionCertificateParams {

    @ApiModelProperty("火警报警装置")
    @Convert(converter = CommonInputConverter.class)
    @Column(name = "fire_alarm_system")
    CommonInput fireAlarmSystem;

    @ApiModelProperty("感温式探头")
    @Convert(converter = CommonInputConverter.class)
    @Column(name = "temperature_alarm_system")
    CommonInput temperatureAlarmSystem;

    @ApiModelProperty("感烟式探头")
    @Convert(converter = CommonInputConverter.class)
    @Column(name = "smoke_alarm_system")
    CommonInput smokeAlarmSystem;

    @ApiModelProperty("感光式探头")
    @Convert(converter = CommonInputConverter.class)
    @Column(name = "infrared_alarm_system")
    CommonInput infraredAlarmSystem;

    @ApiModelProperty("可燃气体报警装置")
    @Convert(converter = CommonInputConverter.class)
    @Column(name = "flammable_gas_alarm_system")
    CommonInput flammableGasAlarmSystem;

    @ApiModelProperty("可燃气体探头")
    @Convert(converter = CommonInputConverter.class)
    @Column(name = "flammable_gas_detector")
    CommonInput flammableGasDetector;

    @ApiModelProperty("硫化氢探头")
    @Convert(converter = CommonInputConverter.class)
    @Column(name = "sulfur_dioxide_detector")
    CommonInput sulfurDioxideDetector;

    @ApiModelProperty("状态灯")
    @Convert(converter = CommonInputConverter.class)
    @Column(name = "status_light")
    CommonInput statusLight;

    @ApiModelProperty("硫化氢报警装置")
    @Convert(converter = CommonInputConverter.class)
    @Column(name = "sulfur_dioxide_alarm_system")
    CommonInput sulfurDioxideAlarmSystem;

    @ApiModelProperty("手动报警测试")
    @Convert(converter = CommonInputConverter.class)
    @Column(name = "manual_alarm_test")
    CommonInput manualAlarmTest;

    @ApiModelProperty("便携式气体探测器")
    @Convert(converter = CommonInputConverter.class)
    @Column(name = "portable_gas_detector")
    CommonInput portableGasDetector;
}
